Optimal. Leaf size=171 \[ \frac{4 a^2 (A-i B) \sqrt{a+i a \tan (c+d x)}}{d}-\frac{4 \sqrt{2} a^{5/2} (A-i B) \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{d}+\frac{2 a (A-i B) (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 A (a+i a \tan (c+d x))^{5/2}}{5 d}-\frac{2 i B (a+i a \tan (c+d x))^{7/2}}{7 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.199722, antiderivative size = 171, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 34, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.147, Rules used = {3592, 3527, 3478, 3480, 206} \[ \frac{4 a^2 (A-i B) \sqrt{a+i a \tan (c+d x)}}{d}-\frac{4 \sqrt{2} a^{5/2} (A-i B) \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{d}+\frac{2 a (A-i B) (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 A (a+i a \tan (c+d x))^{5/2}}{5 d}-\frac{2 i B (a+i a \tan (c+d x))^{7/2}}{7 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3592
Rule 3527
Rule 3478
Rule 3480
Rule 206
Rubi steps
\begin{align*} \int \tan (c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx &=-\frac{2 i B (a+i a \tan (c+d x))^{7/2}}{7 a d}+\int (a+i a \tan (c+d x))^{5/2} (-B+A \tan (c+d x)) \, dx\\ &=\frac{2 A (a+i a \tan (c+d x))^{5/2}}{5 d}-\frac{2 i B (a+i a \tan (c+d x))^{7/2}}{7 a d}-(i A+B) \int (a+i a \tan (c+d x))^{5/2} \, dx\\ &=\frac{2 a (A-i B) (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 A (a+i a \tan (c+d x))^{5/2}}{5 d}-\frac{2 i B (a+i a \tan (c+d x))^{7/2}}{7 a d}-(2 a (i A+B)) \int (a+i a \tan (c+d x))^{3/2} \, dx\\ &=\frac{4 a^2 (A-i B) \sqrt{a+i a \tan (c+d x)}}{d}+\frac{2 a (A-i B) (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 A (a+i a \tan (c+d x))^{5/2}}{5 d}-\frac{2 i B (a+i a \tan (c+d x))^{7/2}}{7 a d}-\left (4 a^2 (i A+B)\right ) \int \sqrt{a+i a \tan (c+d x)} \, dx\\ &=\frac{4 a^2 (A-i B) \sqrt{a+i a \tan (c+d x)}}{d}+\frac{2 a (A-i B) (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 A (a+i a \tan (c+d x))^{5/2}}{5 d}-\frac{2 i B (a+i a \tan (c+d x))^{7/2}}{7 a d}-\frac{\left (8 a^3 (A-i B)\right ) \operatorname{Subst}\left (\int \frac{1}{2 a-x^2} \, dx,x,\sqrt{a+i a \tan (c+d x)}\right )}{d}\\ &=-\frac{4 \sqrt{2} a^{5/2} (A-i B) \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{d}+\frac{4 a^2 (A-i B) \sqrt{a+i a \tan (c+d x)}}{d}+\frac{2 a (A-i B) (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 A (a+i a \tan (c+d x))^{5/2}}{5 d}-\frac{2 i B (a+i a \tan (c+d x))^{7/2}}{7 a d}\\ \end{align*}
Mathematica [A] time = 3.93588, size = 268, normalized size = 1.57 \[ \frac{(a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \left (\frac{(\cos (2 c)-i \sin (2 c)) \sec ^{\frac{7}{2}}(c+d x) (21 (37 A-35 i B) \cos (c+d x)+(287 A-305 i B) \cos (3 (c+d x))+77 i A \sin (c+d x)+77 i A \sin (3 (c+d x))+35 B \sin (c+d x)+95 B \sin (3 (c+d x)))}{210 (\cos (d x)+i \sin (d x))^2}-4 \sqrt{2} (A-i B) e^{-3 i (c+d x)} \sqrt{\frac{e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt{1+e^{2 i (c+d x)}} \sinh ^{-1}\left (e^{i (c+d x)}\right )\right )}{d \sec ^{\frac{7}{2}}(c+d x) (A \cos (c+d x)+B \sin (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.019, size = 165, normalized size = 1. \begin{align*} 2\,{\frac{1}{ad} \left ( -i/7B \left ( a+ia\tan \left ( dx+c \right ) \right ) ^{7/2}+1/5\,A \left ( a+ia\tan \left ( dx+c \right ) \right ) ^{5/2}a-i/3{a}^{2}B \left ( a+ia\tan \left ( dx+c \right ) \right ) ^{3/2}+1/3\,A \left ( a+ia\tan \left ( dx+c \right ) \right ) ^{3/2}{a}^{2}-2\,iB{a}^{3}\sqrt{a+ia\tan \left ( dx+c \right ) }+2\,A{a}^{3}\sqrt{a+ia\tan \left ( dx+c \right ) }-2\,{a}^{7/2} \left ( A-iB \right ) \sqrt{2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{a+ia\tan \left ( dx+c \right ) }\sqrt{2}}{\sqrt{a}}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.76055, size = 1385, normalized size = 8.1 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \tan \left (d x + c\right ) + A\right )}{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac{5}{2}} \tan \left (d x + c\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]